package org.gap.wizards.world.actions;

import java.awt.Point;

import org.gap.wizards.views.MessageOutput;
import org.gap.wizards.views.ViewPlatform;
import org.gap.wizards.world.ClosedSpace;
import org.gap.wizards.world.Location;

public class CloseDoorAction extends AbstractDoorInteraction {

	public CloseDoorAction(Location location, MessageOutput output, ViewPlatform console) {
		super(location, output, console);
	}
	
	@Override
	protected String getMessage() {
		return "Close door in which direction? ";
	}

	@Override
	protected void performActionOn(ClosedSpace building, Point door) {
		building.close(door);
	}
}
